package com.nmc.web.service.impl;


import com.nmc.web.dao.TicketDao;
import com.nmc.web.entity.Ticket;
import com.nmc.web.service.TicketService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("ticketService")
public class TicketServiceImpl implements TicketService {
    @Resource
    private TicketDao ticketDao;

    @Override
    public List<Ticket> selectIsClearing(String ticket_id) {
        return ticketDao.selectIsClearing(ticket_id);
    }

    @Override
    public int updateStatus(Ticket ticket) {
        return ticketDao.updateStatus(ticket);
    }


    @Override
    public List<Ticket> selectExhibition() {
        return ticketDao.selectExhibition();
    }

    @Override
    public List<Ticket> selectUser() {
        return ticketDao.selectUser();
    }

    @Override
    public List<Ticket> selectClearing(int exhibition_id) {
        return ticketDao.selectClearing(exhibition_id);
    }


}
